using Godot;
using System;

public partial class MyNode : Node
{
	AudioStreamPlayer player;

	[Export]
	AudioStream bgm;
	// Called when the node enters the scene tree for the first time.
	public override void _Ready()
	{
		// 实例化节点
		player = new AudioStreamPlayer();
		// 添加节点
		this.AddChild(player);
		// 播放背景音乐
		player.Stream = bgm;
		player.Play();
	}

	// Called every frame. 'delta' is the elapsed time since the previous frame.
	public override void _Process(double delta)
	{
	}
}
